﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 白盒测试_路径覆盖_教程例子
{
	class Program
	{
		static void Main(string[] args)
		{
			int x;
			int y;

			Console.Write("Please input x:");
			x = Convert.ToInt32(Console.ReadLine());
			Console.Write("Please input y:");
			y = Convert.ToInt32(Console.ReadLine());

			Console.WriteLine(SomeFunction(x, y).ToString());
			Console.ReadLine();
		}

		static int SomeFunction(int x, int y)
		{
			int m = 0;

			while (x < 20)//1
			{
				x += 2;//2
				if (y < 10)//3
				{
					x += 4;//4
					m = 3 * y;//5
				}
				else
				{
					if (y % 2 == 0)//6
					{
						m = y + 3;//7
					}
					else
					{
						m = y - 4;//8
					}
				}
				//9
			}
			//10

			return m;//11
		}
	}
}
